package com.len.service;

import com.len.base.BaseMapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.SpAddress;
import com.len.mapper.SpAddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class SpAddressService extends BaseServiceImpl<SpAddress,String> {
    @Autowired
    private SpAddressMapper spAddressMapper;

    @Override
    public BaseMapper<SpAddress, String> getMappser() {
        return spAddressMapper;
    }

    public Map selectByUserName(String userName){
        return spAddressMapper.selectByUserName(userName);
    }
}
